package com.cngphone.AnFetion;

import java.util.ArrayList;

public class FetionGroup {
	private String name;
	private ArrayList<FetionFriend> buddies;
	private int id;
	public FetionGroup (int GroupId, String groupName) {
		name = groupName;
		id = GroupId;
		buddies = new ArrayList<FetionFriend>();
	}
	
	public void addBuddy(FetionFriend buddy) {
		if (buddy == null)
			return;
		buddies.add(buddy);
	}
	
	public void removeBuddy(FetionFriend buddy) {
		if (buddy == null)
			return;
		buddies.remove(buddy);
	}

	public final String getName() {
		return name;
	}

	public final void setName(String name) {
		this.name = name;
	}

	public final int getId() {
		return id;
	}

	public final void setId(int id) {
		this.id = id;
	}

	public ArrayList<FetionFriend> getBuddies() {
		return buddies;
	}
	
}
